# Maintainer: Gennady Feldman <gena01@gmail.com>
pkgname=jfrog-cli
pkgver=1.37.1
pkgrel=0
pkgdesc="JFrog cli"
url="https://jfrog.com/getcli/"
arch="all !mips !mips64" # ftbfs
license="Apache-2.0"
makedepends="go"
options="!check"
replaces="jfrog-cli-go"
provides="jfrog-cli-go=$pkgver-r$pkgrel"
source="$pkgname-$pkgver.tar.gz::https://github.com/jfrog/jfrog-cli/archive/$pkgver.tar.gz"

build() {
	go build -o bin/jfrog -ldflags '-w -extldflags "-static"' main.go
}

package() {
	install -m755 -D bin/jfrog "$pkgdir/usr/bin/jfrog"
}

sha512sums="747c76a285c882aab1ae062bba1fcab82e1fd8546cdd71d31b2e5ff2e4376d049158bd51f1a8cd0eb0cdc44d5b92b688e5a4bb6c4653bef7f123173d59490bdf  jfrog-cli-1.37.1.tar.gz"
